cftunnel, published by 晴辰云 (currently at version 0.8.1, the single release available in the catalog), is a full-protocol intranet penetration command-line tool that combines two engines — Cloudflare Tunnel and frp — to expose local services to the public internet. It is categorized as a networking/tunneling utility and serves two main operating modes. In Cloud mode, powered by Cloudflare Tunnel, users can obtain free HTTP and WebSocket penetration: the `cftunnel quick ` command generates a temporary *.trycloudflare.com public address with zero configuration, while a four-step workflow (init → create → add → up) handles tunnels bound to a user's own domain, including automatic CNAME record creation when routes are added and cleanup when they are removed. Access protection is available through an `--auth user:pass` flag that enables password protection via a built-in authentication proxy middleware. Relay mode relies on a self-hosted relay server and supports full-protocol TCP, UDP, and HTTP forwarding, making it suitable for game servers, databases, SSH, and remote desktop scenarios; the server side can be deployed with a curl-to-bash script or Docker Compose, the client connects via `relay init`, and `cftunnel quick --relay` enables quick penetration without preconfigured rules. General features include cross-platform builds for macOS (Intel and Apple Silicon), Linux (amd64 and arm64), and Windows (amd64 and arm64); process hosting with automatic download of engine binaries and integration with macOS launchd, Linux systemd, or Windows Service; a built-in version check with one-click self-updating; and a portable mode in which placing an empty file named "portable" alongside the program stores configuration, logs, and binaries locally. A companion desktop client, cftunnel-app, provides a graphical interface for visual tunnel management, and the tool is AI-friendly through built-in Claude Code and OpenClaw skills that allow AI assistants to manage tunnels directly.
Tags: